package gwtmodule1.client.gui.stock;

import gwtmodule1.client.gui.utils.FormTable;
import gwtmodule1.client.gui.utils.FrameClient;
import gwtmodule1.client.gui.utils.Title;

import com.google.gwt.user.client.ui.TextArea;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.VerticalPanel;
import com.google.gwt.user.client.ui.Widget;

public class PageEditItem extends VerticalPanel implements FrameClient {

	private Widget createForm() {
		FormTable form = new FormTable();
		form.addInput("Brand", new TextBox());
		form.addInput("Product Name", new TextBox());
		form.addInput("Number of Items Available", new TextBox());
		form.addInput("Expected Date of next Delivery of this Item",
				new TextBox());
		form.addText("Price", "1234.50 USD");
		form.addText("Discount", "10%");
		form.addInput("Description", new TextArea());
		form.addButton("Save", null);
		return form;
	}

	public PageEditItem() {
		super();
		add(new Title("Edit Item"));
		add(createForm());
	}

	public void onShow(Object param) {
	}

}
